package stock;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

public class DateTest {

	public static void main(String[] args) {
		LocalDate currentDate = LocalDate.now();
		DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMdd");
		String formattedDate = currentDate.format(formatter);
		System.out.println(formattedDate);

	}
}
